<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ include file="/WEB-INF/jsp/commons/taglibs.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>E-天下商旅-管理员登录</title>
<link href="${ctx}/resources/css/page_login.css" rel="stylesheet" type="text/css">
</head>

<body>

<div class="header">
	<h1><a href="/" title="e天下商旅"><img src="${ctx}/resources/img/logo.gif" alt="e天下商旅" /></a></h1>
</div>


<div class="main_box">
<div class="main cf">	
			<div class="content cf">
				<div class="login_box">
				<img src="${ctx}/resources/img/login.png">
					<form action="${ctx}/login/merchant/validate" method="post">
                       <div>
							<label><i>* </i>用户名</label>
                            <input type="text" class="input" name="account" id="account"  /><span></span>
                        </div>
                        <div>
							<label><i>* </i>密码</label>
                            <input type="password" class="input" name="password" id="password"  /><span></span>
                        </div>
                        <div class="yzm">
							<label><i>* </i>验证码</label>
							<input  type="text" style="width:70px" class="input" name=""    /><span></span>
                            <img src="${ctx}/catcha/captchaImage" width="55" height="25" id="kaptchaImage"  style="margin-bottom: 4px"/>   
						     <a href="javascript:changeKaptchaImage();">看不清楚？</a>						     
                        </div>
                        <div>
 							<label>&nbsp;</label>
							<input type="submit" class="submit btn_blue" value="登录" />
                        </div>
					</form>
				</div>
				
			</div>
		
</div>
</div>


<div class="footer_box">
<div class="footer">
	<p>
		中加影像1016工作室  邮编 610000 电话 + 86-028-85170675<br>
		Copyright 2011-2012 1016 sino-canada photography studio. All Rights Reserved
	</p>
</div>
</div>

<script src="${ctx}/resources/script/jquery-1.7.min.js"></script>
<script src="${ctx}/resources/script/jquery.form.js"></script>
<script src="${ctx}/resources/script/common.js"></script>
<script>
$(function(){
	 $('#kaptchaImage').click(function () {//生成验证码  		
         $(this).hide().attr('src', '${ctx}/catcha/captchaImage?' + Math.floor(Math.random()*100) ).fadeIn(); 
	 });      
	 
	formVE($("form"),function(){
		ajaxVerCode();
		alert("表单验证通过");
		//return false;
	});
	
});

/**
 * 改变验证码
 */
function changeKaptchaImage(){
	 $("#kaptchaImage").hide().attr('src', '${ctx}/catcha/captchaImage?' + Math.floor(Math.random()*100) ).fadeIn(); 
}

/**
 * 验证验证码
 */
function ajaxVerCode(input){
	seterr(input,"验证码输入错误");
	return true;
}
</script>

</body>
</html>

